package com.yuexunxinxi.carefree.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuexunxinxi.carefree.utils.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 作者: 李咨辰
 * 文件名: BReview.java
 * 路径: com.yuexunxinxi.carefree.entity
 * 时间: 2024-10-21 13:11
 * 版本: 1.0
 * 描述: TODO 评论表
 **/
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper = true)
@Data
public class BReview extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;//编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tweetId;//推文编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;//用户编号
    private String content;//评论内容
    private Long parentId;//父级id(默认为0,回复评论时为被回复的id)
    private String address;//评论地址
    private String top;//是否置顶
    private String picture;//图片/表情包
}
